How Market Access Shapes Human Capital Investment in a Peripheral Country