Donations to a public good in a large economy