Analysis of the level of population endogamia as the basis of population-genetic and medical-genetic studies