Test of spike-sorting algorithms on the basis of simulated network data