Holistic-probabilistic studies on localized and general corrosion