Percolation in inhomogeneous superconducting composite wires