Synthesis and characterization of chlorinated polyaniline