Turkish PM writes letter to Iraqi counterpart over troops