Thermal power frequency regulation and energy storage