Robust and accurate shock-capturing in discontinuous Galerkin discretizations