Cross Section and Panel Data Estimators for Nonseparable Models with Endogenous Regressors