Nonlinear ion trap stability analysis