A percolation approach to conductivity dependence on porosity