Lying times of lactating cows on dairy farms with automatic milking systems and the relation to lameness, leg lesions, and body condition score.