CO2 conversion to energy materials