Knot calculation for spline fitting via sparse optimization. (January 2015)