Electrosynthesis: a smart way for the one-step preparation of metallic and bimetallic nanoparticles