Measurements of trace constituents from atmospheric infrared emission and absorption spectra, a feasibility study