Charging mechanism of lithium sulfur batteries