Wavelet spectral analysis and attribute ranking applied to automatic classification of power quality disturbances