Three essays on international trade and institutions