Territorial integrity must be respected only if the governments are legitimate – Lavrov