Which of the following occurs in an electrolytic cell?