Researchers combing through archives discovered that cigarette makers had applied their marketing wizardry to sweetened beverages and turned generations of children into loyal customers.