Stability of various doping species in trans-polyacetylene