Compositional effects of capital controls: evidence from Latin America