Electrochemical faceting of metal electrodes