Plant response to environmental conditions: assessing potential production, water demand, and negative effects of water deficit