Titanium carbide based composites for high temperature applications