Z-Embedding: A spectral representation of event intervals for efficient clustering and classification