Resistivity and magnetization bimodal improvement in Ni ferrite nanoparticles by Mg substitution