A spectral and Bayesian approach for analysis of fluctuations and synchrony in ecological datasets