Gibbs sampling of climatic trends and periodicities