Contrasting patterns and connections of rock and biotic diversity in the marine and non-marine fossil records of North America