Bound and resonance states of the nonlinear Schrödinger equation in simple model systems