Interpolation by atomic functions and B-splines