The role of surface chemistry in zeolite membrane formation