Structure-activity relationships in carbohydrates revealed by their hydration