Global food and beverage giant Nestlé has shrugged off surging energy and commodity costs to post strong sales and earnings growth in the first half.