A simple analytical analysis of the performance of a two-membrane reactor