Fundamental properties and wear resistance of r.f.-sputtered TiB2 and Ti(B,N) coatings