Multivariate data analysis applied to the study of corrosion