The ecology of modern and fossil vertebrates revisited by lithium isotopes