The economics of rules of origin