Ab initio studies on heterocyclic conjugated polymers: Structure and vibrational spectra of pyrrole, oligopyrroles, and polypyrrole