Vertical and horizontal evolution of the Uralic language family and its relation to genetic and cultural history