Deutsche Bank swings back to profit in the third quarter, beating expectations