Barrier to internal rotation of amides. I. Formamide