A dynamic spatial gradient model for the subgrid closure in large-eddy simulation of turbulence