Dimensional changes as a function of charge injection for trans-polyacetylene: A density functional theory study