working of thermal power plant