New calorie-tracking apps with A.I. promise better accuracy. But researchers who study calories say that there’s a better, smarter way to approach weight loss.