How does porosity relate to the grain size of sediment