How the initialization affects the stability of the k-means algorithm