Investigation on structural and magnetic properties of cobalt doped magnesium ferrite nanoparticles