Making the most of solar thermal energy