A first principles approach to the electronic properties of liquid and supercritical CO2.