Vertically oriented silica mesochannels as the template for electrodeposition of polyaniline nanostructures and their electrocatalytic and electroanalytical applications.