Motivations for Capital Controls and Their Effectiveness