Percolation Models as a Basis of Material Failure