Insights into Self-Discharge of Lithium– and Magnesium–Sulfur Batteries