Numerical solution to the electromagnetic scattering by nonlinear objects by using genetic algorithms