A quintic B-spline finite-element method for solving the nonlinear Schrödinger equation