A numerical approach to the direct scattering problem for nonlinear dielectric objects