Red luminescent and structural properties of Mg-doped ZnO phosphors prepared by sol–gel method