UN court tells Armenia and Azerbaijan to cool feud