Numerical solutions of electromagnetic problems by integral equation methods and finite-difference time-domain method