Modelling and simulation of membrane reactors and catalytic membrane reactors