Duplex trapping and charge transfer with polysulfides by a diketopyrrolopyrrole-based organic framework for high-performance lithium–sulfur batteries