Ukraine's Role in NATO's and the EU's Collective Security