Dynamic optimization of a one-stage reverse-osmosis installation with respect to membrane fouling