Identifying cryptic relatedness in genetic association studies