Minimization of entropy generation rate in hydrogen iodide decomposition membrane reactor