A wavelet-based multivariable approach for fault detection in dynamic systems