Scalable and accurate method for neuronal ensemble detection in spiking neural networks