Improving the processability of conductive polymers: the case of polyaniline