Solar energy for heat and electricity