Inventories and capacity utilization in general equilibrium