Polyamines derived from (poly)oxazolines, (poly)oxazines or having pendant acyl groups