Facile synthesis of MgFe2O4/C composites as anode materials for lithium-ion batteries with excellent cycling and rate performance