Synthesis, characterization and electrical properties of dihalogenated polyanilines