Electrical analogy of hydraulic flow through rock fractures