Overcoming the twin challenge of decarbonisation and energy security