Estimating the permeability of reservoir rocks from P-wave velocity and quality factor