Mel'nikov analysis of numerically induced chaos in the nonlinear Schrödinger equation