Monitoring and measuring electrochemical behavior of engineering alloys by optical interferometry