process of boiler in producing energy