Thermal cis–trans isomerization and decomposition of polyacetylene