Synthesis and metal complexation of poly(ethyleneimine) and derivatives