Reaction coupling in catalytic membrane reactors