Optimization of selective sludge discharge mode for enhancing the stability of aerobic granular sludge process