7 – Thermodynamics of corrosion and potentiometric methods for measuring localized corrosion