Nonlinear Contingency Analysis