Primary migration of hydrocarbons by diffusion through organic matter networks, and its effect on oil and gas generation