An introduction to sustainable energy