Electrolysis can be used for all of the following, except A. separating metals from ores. B. plating objects with metal coatings. C. producing compounds. D. recharging batteries.