GMM estimation of time series models