Czech president: NATO's failure in Afghanistan puts its legitimacy in question