The recent surge in anti-foreigner sentiment in Turkey is driven by a combination of economic, political, and social factors.