A design method of window functions by spline approximation