A Simulation Model for Predicting Effect of Water Stress on Yield: An Example Using Corn