Sea-level variations and the quality of the continental fossil record