Novel Flame-Retardant Acrylated Poly(Ester-Amide) Resins Based on Brominated Epoxy