Polyamines containing other atoms than carbon, hydrogen, nitrogen or oxygen in the main chain