A hidden semi-Markov model for segmenting environmental toroidal data