Genomic analysis of sequence variation in tandemly repeated DNA