Numerical solutions of integral equations for electromagnetics