Hydrogenation of CO2 on carbon-supported nickel and cobalt