Electrochemical treatment of spent tan bath solution for reuse