Hydraulic resistance and osmotic pressure effects in fouling layers during MBR operations