Internalizing Global Value Chains: A Firm-Level Analysis