Thermal degradation of phosphonated polystyrenes. Part 1: Chain and condensation