An Adjoint-based Sensitivity Formulation Using the Discontinuous Galerkin Method