how does a boiler work hot water