Sustainability assessment of energy systems