Detritus feeding as a buffer to extinction at the end of the Cretaceous