Modeling fouling in spiral wound membrane systems