Nutritional characterization and measurement of dietary carbohydrates