Determine whether kinetic energy is being converted to potential energy, or vice versa, in the following process. a) Water cascades downward in a waterfall. b) Electrolysis of water produces H_2 and O_2. c) An electric current is generated by a chemical reaction in a battery. d) Water boils when heated on a gas stove.