Study of structural and electrical properties along with magnetic properties of Ni0.5−xMgxCu0.2Cd0.3Fe2O4 nanoferrites synthesized by employing sol–gel auto-combustion method