Study finds self-serving twist to belief in divine justice