Women, the labor market, and the declining relative quality of teachers