Resilience and strain energy