Two-phase TiC/TiB2 hard coatings