Interferometric method for monitoring electrochemical etching of thin films