Krispy Kreme posts steep loss in 2nd Q