Tuning polyaniline nanostructures via end group substitutions and their morphology dependent electrochemical performances