Carbonitrothermic reduction as a route to produce titanium metal