Localized Corrosion in Complex Environments