X-ray photoelectron spectroscopy studies of the chemical structure of polyaniline.