Electrochemical recycling of lead-based materials