Incentive-compatible profit-sharing contracts: a theoretical treatment