Understanding corrosion to better prevent it