Numerical modelling of an undulating membrane tidal energy converter