Hard coatings for mechanical applications