Modulating the electronic structure of nanomaterials to enhance polysulfides confinement for advanced lithium–sulfur batteries