Crosslinked polymer-supported ligands as complexing agents for metal ions: effect of the variables of macromolecular structure on complexation