Alloys of titanium with carbon, oxygen, and nitrogen