Paleoredox variations in ancient oceans recorded by rare earth elements in fossil apatite