Telekomjätten Ericsson redovisar ett högre resultat än väntat för det andra kvartalet.