Joint smoothing and partitioning of one-dimensional signals and time series with higher order Mumford-Shah models