Thermodynamic analysis of competitive adsorption of CO_2 and CH_4 on coal matrix