Electrosynthesis of polyaniline in ionic liquid and its electrocatalytic properties