A Bayesian nonparametric approach to determining a maximum tolerated dose