Essays on technology and international trade