Insulator-to-metal transition in doped polyacetylene