How does carbohydrates function in the body