GlaxoSmithKline cost-cutting drives $1.8 billion profit in second quarter; Japan sales strong