Canonical formalism for the (2+1)-D nonlinear Schrödinger equation