Enhanced thermal properties and morphology of ion-exchanged polypyrrole films