Turkey agrees to $7 billion debt swap