Engineering the opticaland magnetic properties of Zn doped CoFe2O4 nanoparticles