Complexation of divalent and trivalent nickel and copper ions by rigid and flexible dioxo tetraaza macrocycles