Nonparametric clustering of seismic events