Electrocoagulation in the treatment of industrial waters and wastewaters