Modeling the welfare impacts of agricultural policies in developing countries