Identification and Inference in Nonlinear Difference-in-Differences Models