Modeling and design optimization for membrane filters