An analysis of earthquakes clustering based on a second-order diagnostic approach