Molecular mechanism of adsorption/desorption hysteresis: dynamics of shale gas in nanopores