A rise in second-quarter earnings that beat analyst expectations was not enough to prevent half-year profits falling at cereal giant Kellogg.