Localized polarons in in situ synthesized polyaniline nanocomposite improve the morphology and the thermal and electrical conductivity