how can electricity contribute to a chemical reaction?