The fossil record and spatial structuring of environments and biodiversity in the Cenozoic of New Zealand