Essays on the Economic Consequences of Capital Controls