Hydrogen bonding in polyamides