Preparation of polyelectrolytes for wastewater treatment.