Cow- and herd-level risk factors for lameness in partly housed pasture-based dairy cows.