State space models for decoding hippocampal trajectories and determining their type using sorted or clusterless data