Measurements and modeling of high-pressure adsorption of CH4 and CO2 on shales