Title: Human Capital and Gender Inequality in Middle-Income Countries