The Optimal Structure of Intergovernmental Grants