An approach to the spectral simulation of infrared hollow waveguide gas sensors