how is coal used to create enegy