Magnetic field effects on the initial stages of electrodeposition processes