Optimal Adjustment of the Composition of Public Expenditure in Developing Countries