Fundamentals of electrochemical deposition