Turkey's benchmark stock index ends week with gain