A study of hydrogen bonding and rotational isomerism in amides by nuclear magnetic resonance spectroscopy