Spain releases German-Turkish writer sought by Ankara