Inference and estimation for nonlinear single index models