Density functional studies of internal rotation: formamide as a prototype of the peptide bond