Conductivity and permeability of rocks