Essays on production networks and international trade