Growth in sun-powered energy has been the result of an unusually favourable combination of circumstances, which is now coming to an end