Analysis of multiple depth profiles in sediment cores: an application to pollen and diatom data from lakes sensitive to acidification