Ab initio Hartree–Fock approach to the study of polymers: Application to polyacetylenes