Rare-earth doped nanoparticles for quantum memories