how does a boiler work in a home