Synthesis and characterization of nanostructured titanium carbide for fuel cell applications