how to wire water heater thermostats