Explicit relation between relative permeability and structural parameters in stochastic pore networks