Rewards and the evolution of cooperation in public good games