Polymeric brominated flame retardants