Samsung reports large Q2 profits as demand surges for chips