Nucleation, aggregative growth and detachment of metal nanoparticles during electrodeposition at electrode surfaces