A model for assessing crop response to salinity