Treatment of mining waters by electrocoagulation