The state legal status of North Ossetia within the Russian Empire (late XVIII - early XX century)