Why magnesium carbonate is used in diets