A least-squares approach for the design of nonrecursive differentiators of arbitrary order