Dispersion-diffusion analysis for variable coefficient advection problems with application to discontinuous Galerkin formulations