Network reliability analysis based on percolation theory