Local capillary trapping and permeability-retarded accumulation during geologic carbon sequestration