On the causes of mass extinctions