Calving time identified by the automatic detection of tail movements and rumination time, and observation of cow behavioural changes