Formation of the theory of security in the Russian state of the XIX-XXI centuries