Smoothing for signals with discontinuities using higher order Mumford-Shah models