Reactive and additive modifications of styrenic polymers with phosphorus-containing compounds and their effects on fire retardance