Validation of an ear tag-based accelerometer system for detecting grazing behavior of dairy cows.