Optimal design of hollow fiber modules