Shares in PepsiCo and The Coca-Cola Co rose this week as the two soft drinks giants released their second-quarter results.