When Flint, Mich., switched its water supply, a chemical cascade inside old pipes caused lead to leach into the city's drinking water, triggering a public health emergency.