Principles of sustainable energy