Even before Russia imposed sanctions over the downing of a combat jet, an influx of migrants and a loss of export markets hindered Turkey’s economy.