Modeling the impact of technological change on nutrition and marketed surplus