Use of theoretical and estimated identity-by-descent (IBD) allele sharing measures in genome-wide linkage and association studies, with application to large pedigrees