Clustering of seismic catalogs based on maximum likelihood estimation