Biofouling in reverse and forward osmosis membrane systems