VW slumps to third-quarter loss on emissions scandal