Comparison of selectivity of a family of chelating agents for trivalent (Al3+, Fe3+) and bivalent (Cu2+, Zn2+) metal ions