Reaction-driven membrane systems