Abinitio vertical spectra and linear bent correlation diagrams for the valence states of CO2 and its singly charged ions