Intermediate Products and the Theory of International Trade: A Generalization of the Pure Intermediate Good Case