Purification of oily wastewater by ultrafiltration