Sol–gel encapsulated lithium polysulfide catholyte and its application in lithium–sulfur batteries