Metal recovery using a moving-bed electrode