Optimal Contracts for Ambitious Team Workers