Frequency dependence of third-harmonic generation in cis- and trans-polyacetylene: importance of the degenerate ground state to nonlinear optical response