Samsung Electronics flags 25% plunge in Q2 profit