Write two applications of electrolysis in which the anode diminishes in mass.
Used in electroplating.
Purification of metals.