NASICON-type Li0.5M0.5Ti1.5Fe0.5(PO4)3 (M = Mn, Co, Mg) phosphates as electrode materials for lithium-ion batteries