Thermal behaviour of covalently bonded phosphate and phosphonate flame retardant polystyrene systems