Mg-induced phase transformation from hematite to maghemite