Under legislation, third country is 'safe' if asylum seeker has ties to it or previously transited through it