Synthesis of pyridine and quinoline derivatives of poly(methyl methacrylate): their uses as brominating agents