Text this: Impact of Gd, Pr, Yb, and Nd doping on the magnetic properties of Mg-ferrite nanoparticles