Study of percolation thresholds in ternary tablets