Effects of sample size, number of markers, and allelic richness on the detection of spatial genetic pattern