A study of molecular structure and internal rotation in amides by nuclear magnetic resonance spectroscopy