Annealing-induced change in quantum dot chain formation mechanism