Variation of the lattice and spin dynamics in Bi1- xDyxFeO3 nanoparticles