Simulation of Metal Electrodeposition Using the Kinetic Monte Carlo and Embedded-Atom Methods