Halogen-free flame-retardant sulfur copolymers with stable Li–S battery performance