Combined first-principles statistical mechanics approach to sulfur structure in organic cathode hosts for polymer based lithium–sulfur (Li–S) batteries