Integral equation and discontinuous Galerkin methods for the analysis of light-matter interaction