Effect of flow configuration on the behavior of a membrane reactor operating without sweep gas