Optimal two‐stage genotyping in population‐based association studies