Optimizing hydrophobic and wear-resistant properties of Cr–Al–N coatings