Recurrence, dimensionality, and Lagrange stability of solutions of the nonlinear Schrödinger equation