Testing an electrochemical method for treatment of textile dye wastewater