A semiparametric estimation of copula models based on the method of moments