General treatment of vibrations of helical molecules and application to transition dipole coupling in amide I and amide II modes of α-helical poly(l-alanine)