Exogeneity in semiparametric moment condition models