Estimation and Inference in Nonlinear Structural Models