Percolation theory applied to soil tomography