Teaching to the tests: An economic analysis of traditional and modern education in late imperial and republican China