Adsorption, selectivity, and phase behavior in organic nanopores for shale gas and oil development