Porous material converts CO2 into carbon monoxide and oxygen