The process of purification of an impure metal is like:
A. electroplating a metal on the same type of metal
B. electroplating a metal on another type of metal
C. producing a chemical compound by electrolysis
D. decomposing a chemical compound by electrolysis.