Ashwin sends S. Africa to its doom