A generalized model for aerobic granule-based sequencing batch reactor. 1. Model development.