Biogeochemical controls on photic-zone euxinia during the end-Permian mass extinction