Numerical solution of the nonlinear Schrodinger equation by feedforward neural networks