LEGAL REGULATION OF THE LEGAL SERVICE OF THE MINISTRY OF INTERNAL AFFAIRS OF THE RUSSIAN EMPIRE IN THE SECOND HALF OF THE XVIII–XIX CENTURIES