First principles investigation on the validity of the peierls mechanism for the dimerization energy of trans-polyacetylene