Least Squares Approximation of Scattered Data with B-Splines