general boiler flue gas calculation