Slovak FM quits after parliament rejects migration pact