Cycle-preserving extension of demand functions to new commodities