Samsung and LG Electronics see strong Q2 earnings