Foreign market entry, upstream market power, and endogenous mode of downstream competition