Generalized Leontief Substitution Systems