A Novel synthesis of MgS and its application as electrode material for lithium-ion batteries