Titanium-carbonitride-based hard alloys for cutting tools