A better economy is helping sell more Marlboros and Camels, even as prices climb. That brought higher profits for their makers in the second quarter.