Purification of titanium oxycarbonitride by leaching from titanium slag with carbothermal reduction