Vibrational spectra and structure of M(CO2) and M2(CO2) molecules