South Africa crush England by 340 runs to level Test series