Study of aerobic granular sludge stability in a continuous-flow membrane bioreactor