Text this: Iterative methods in electromagnetic scattering based on the minimization of the root mean square error