What is the difference between a galvanic cell and an electrolytic cell? How do they use redox reactions to produce or consume electrical energy?