Magnetic properties of Mg-ferrite nanoparticles