what are the functional groups of carbohydrates