Large-amplitude motion in 1,4-cyclohexadiene and 1,4-dioxin: theoretical background for joint treatment of spectroscopic, electron diffraction and ab initio data