Krispy Kreme swings back to first quarterly profit in more than a year