Multi-phase catalytic membrane reactors