Defense of the southern borders of Russia in the XVIII century