A macromolecular halogen‐free flame retardant and its effect on the properties of thermoplastic polyesters