Germany to pull troops from Turkish base in spat with Ankara