Introduction to energy systems