Application of Benzoxazine-Based Dimers, Oligomers, and Polymers as Chelating Agents