Numerical methods in computational electrodynamics