Numerical study of spectral intensity of emission and absorption of the CO2 and CO molecules under vibrationally nonequilibrium conditions