Detection of trends and periodicities in long climatic series