A convergence criterion for self-organizing maps