Preparation and properties of sol–gel synthesized Mg-substituted Ni2Y hexagonal ferrites