A reconstructed discontinuous Galerkin method based on variational formulation for compressible flows