Using segment-based features of jaw movements to recognize foraging activities in grazing cattle