Physical and photo-electrochemical properties of MgFe2O4 prepared by sol gel route: application to the photodegradation of methylene blue