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