Relationship between regolith particle size and porosity on small bodies