In situ wrapping of the cathode material in lithium-sulfur batteries