A large part of PepsiCo’s earnings growth can be attributed to its focus on nutritious snacks and beverages.