Assessment and control of grape maturity and quality