Megafauna and ecosystem function from the Pleistocene to the Anthropocene