A Bayesian nonparametric causal model for regression discontinuity designs