Effect of molecular structure on ionic decomposition. II. Electron-impact study of 1,3- and 1,4-cyclohexadiene and 1,3,5-hexatriene