Differentiation Based on Optimal Local Spline Quasi-Interpolants with Applications