Thermostatically Controlled Loads in the Power System Under Cyberattacks