Understanding how the deterioration of cast iron pipes evolves into leakage