Effects of mass extinctions on biodiversity