Forecasting Long-Term Gas Production of Dewatered Coal Seams and Fractured Gas Shales