Preparation and characterization of polyaniline–polypyrrole composite from polyaniline dispersions