Influence of inserted anions on the properties of polypyrrole