A Generalized Framework Model for the Simulation of Gas Production in Unconventional Gas Reservoirs