Kraft Heinz takes $3 billion writedown, signals weaker second-half earnings growth