Effect of Mg substitution on electromagnetic properties of NiCuZn ferrite