Complex resistivity measurements of confined rock