Solar energy and astronomy: clean energy at the service of science