Equilibria of Complex Formation between Bivalent and Trivalent Metal Ions and Macrocyclic Tridentate Amine