Genetics of behavioural adaptation of livestock to farming conditions