Structural inequalities in education and their impact on student achievement and earnings in Brazil