Theoretical study of the effect of counterions on the structure of pyrrole oligomers