Bayesian discharge rating curves based on B-spline smoothing functions