Which of the following statements best describes the process of corrosion?