GMM objective function
f = gmmLsFunc(b,gmmopt,Y,X,Z,W)
* b = parameter vector fed to function
* gmmopt = gmm options tlist
* Y = "dependent" variables
* X = "independent" variables
* Z = Instruments (can be same as X)
* W = matrix of weights
* f = function value evaluated at b