How does a thermostat use thermal expansion to run the heater?