Fourier Transform Spectroscopy of CO and CO2 Confined in Aerogel Nanopores in the Near-IR Range