Speciation, stability constants and structures of complexes of copper(II), nickel(II), silver(I) and mercury(II) with PAMAM dendrimer and related tetraamide ligands