X-ray photoelectron spectroscopy studies of deprotonated polypyrrole and its complexes