function of carbohydrates in plants and animals