Thin-film membranes downstream to the reactor for novel energy-efficient processes in H2 production