Nanoparticles and preparation method