Structural studies of halogen-substituted polyanilines by X-ray photoelectron spectroscopy