South Africa agree to day-night Australia Test