Nano-electronics and spintronics with nanoparticles