Synthesis and properties of aromatic poly(ester amide)s with pendant phosphorus groups