Ukraine signs security pacts with EU, Lithuania and Estonia