Iterative solution for dense linear systems arising in computational electromagnetics