Building resilient energy systems for a changing climate