Social behavior in farm animals: Applying fundamental theory to improve animal welfare