Apply electrolysis, electrowinning, and electrorefining using Faraday’s law, electrode potentials, current efficiency, and cell energy balances.