Ukrainian leader says he will resign if Kyiv is granted membership of NATO.