SMS: Fundamentals of electrochemical deposition