Electrochemical methods in the study of localized corrosion attack