Designing stable room-temperature metal-sulfur batteries