draft code for calculating transition frequency on dihedral angles