S. Africa push lead past 500 against Australia