Optimal beam polarizations for new-physics search through γγ→tt̄→ℓX/bX