The European Commission is preparing to invite Taliban officials to Brussels for technical talks on returning Afghan migrants from EU countries.