Purification of waste water of heavy metals by electrocoagulation