How to get the most out of solar energy