Wavelet analysis of ecological time series