Dynamical segmentation of single trials from population neural data