how do gas fired boilers work