GMM gradients of the objective function
G = gmmLsGrad(b,gmmopt,Y,X,Z,W)
b = parameter vector fed to func
gmmopt = gmm options tlist
Y = "dependent" variables
X = "independent" variables
Z = instruments (can be same as X)
W = matrix of weights
G = gradients evaluated at b