Trade and Variety in a Model of Endogenous Product Differentiation