When Teamwork Is Good for Employees — and When It Isn’t