On the potential energy functions of the electronic states of CO2