which country shares borders with austria and romania