Ti(C,N) and (Ti,Al)N hard wear resistant coatings