A Bayesian approach for evaluating the impact of historical events on rates of diversification