Spontaneous and photoinduced conversion of CO2 on TiO2 anatase