Agglomeration and Growth with Endogenous Expenditure Shares