Ukraina tecknade en försvarspakt med Sverige och Storbritannien för att ta emot Gripen-stridsflygplan utrustade med Meteor-robotar.