Spline smoothing with an estimated order parameter