EU seeks to prevent Afghan migrants from coming to bloc's external borders