The fossil record of biodiversity: nutrients, productivity, habitat area and differential preservation