NATO leaders have gathered in the Turkish capital as the alliance faces a crucial test of its credibility