Aerobic granulation in a sequencing batch reactor