Trade liberalization, selection, and technology adoption with vertical linkages