SocGen posts better than expected Q2 loss after Russia sale