Quantitative analysis of remote gas temperatures and concentrations from their infrared emission spectra