Biological nutrient removal in SBR technology: from floccular to granular sludge