Essays on international trade and firm dynamics : PhD thesis in economics