Analysis of discontinuous Galerkin methods using mesh-dependent norms and applications to problems with rough data