Polyamines-an improved automated ion-exchange method