Applications of Identity-By-Descent Analysis in Population Genetics Research: Methods for Demographic History Inference and Genetic Association Analysis