S Africa thrashes Australia to win Test series