Volkswagen has beaten forecasts with a near 50% rise in adjusted second-quarter operating profit helped by a recovery in its core VW brand.