Converting CO2 via Thermocatalysis and Electrocatalysis