Gradients of local linear hulls in finite-difference operators for Hamilton-Jacobi equations