Electronic detection of lameness in dairy cows through measuring pedometric activity and lying behavior