Geomagnetic secular variation as a precursor of climatic change