A novel method for the synthesize of nanostructured MgFe2O4 photocatalysts