The effect of torsional vibrations on molecular structure