Optimization of ultrafiltration/diafiltration processes for partially bound impurities