Valence mediation of samarium towards polysulfides as a redox mediator for high performance Li–S batteries