Biotic replacement and mass extinction of the Ediacara biota