Factors affecting coagulation as a pretreatment to ultrafiltration membranes