Selection of the ground state for nonlinear schrödinger equations