Linking floc structure and settling properties to activated sludge population dynamics in an SBR.