Within-District School Lotteries, District Selection, and the Average Partial Effects of School Inputs