The Discontinuous Galerkin Method Applied to Problems in Electromagnetism