Isotopic constraints on the marine environment and biogeochemical cycles during major periods of animal evolution and extinction