Design of prime coats based on the theory of percolation