Preparation of Dy and Mn nanoparticles