Characterization of polyaniline as a conducting polymer