A generalization of the stress-degree-day concept of yield prediction to accommodate a diversity of crops