The preparation, thermal properties, and fire property of a phosphorus-containing flame-retardant styrene copolymer