Computer simulation of electrodeposition: hybrid of molecular dynamics and Monte Carlo