Influence of the conditions of the solid state formation on the optical spectra and concentration of defects in polyacetylene