Niche conservatism and ecological change during the Late Devonian mass extinction