The effects of student composition on teachers' effort and students' performance: Implications for tracking, school choice, and affirmative action