Hydrothermal synthesis of nickel doped cobalt ferrite nanoparticles: optical and magnetic properties