Shared rewarding favors voluntary contributions to public goods