Samsung Electronics posts strong Q2 profit driven by chips sales