Formation of trans-polyacetylene from single-wall carbon nanotubes