δ18O and REE contents of phosphatic brachiopods: a comparison between modern and lower Paleozoic populations