Measurement of combustion gases