Evolutionary ecology during the rise of dioxygen in the Earth’s atmosphere