Making the energy sector more resilient to climate change