what are the 3 functions of carbohydrates in plants