Discontinuous and continuous Galerkin methods for compressible single-phase and two-phase flow in fractured porous media