Local analysis of discontinuous Galerkin methods applied to singularly perturbed problems