General explicit difference formulas for numerical differentiation