A wavelet-based technique for bearing diagnostics