Formation of titanium carbide coating with micro-porous structure