Tolerance and failure propagation analysis of metabolic networks