Reduction to the Second Painlevé Equation and N-Soliton Solutions of the Three-Dimensional Nonlinear Schrödinger Equation