CO2 and CO vertical distribution in the middle atmosphere and lower thermosphere deduced from infrared spectra