Determination of effective grain geometry for electrical modeling of sedimentary rocks