Lack of oxygen led to first mass extinction