Scalable and explainable self-supervised motif discovery in temporal data