Comb-assisted spectroscopy of CO2 absorption profiles in the near- and mid-infrared regions