A study of polyamine complex formation with H+, Cu(II), Zn(II), Pb(II), and Mg(II) in aqueous solution