Catalyst electro-redeposition controls morphology and oxidation state for selective carbon dioxide reduction