Method for recovering titanium