Energy wavelet analysis of time series