An Economic Theory of Protectionism, Tariff Bargaining, and the Formation of Customs Unions