Electrochemical deposition mechanism of sodium and potassium