The gains from agricultural research under distorted trade