Sustainability, energy and complexity