Phase engineering of metal nanocatalysts for electrochemical CO2 reduction