The impact of trade on plant scale, production-run length and diversification