Metal-ion binding affinity of azole-modified oxirane and thiirane resins