Spectroscopy of thin polyaniline films deposited during chemical oxidation of aniline