Percolation theory and the geometry of photospheric magnetic flux concentrations