Mars Inc., the company best known for its candy, is buying an animal-hospital chain VCA for $7.7 billion. The purchase will make the company’s pet business its largest segment.