Identification of critical load for scratch adhesion strength of nitride-based thin films using wavelet analysis and a proposed analytical model