Turkey signs deal to buy Russian S-400 missile system