A study of precipitated films formed during electrochemically driven dissolution processes