The effect of patents on trade