Solid state synthesis of Mg–Ni ferrite and characterization by XRD and XPS