EU says 6 member states may seek exemption from migration pact