Synthesis and electrochemical properties of PANI–TiC nanocomposite and its electrocatalytic behavior