Miller heroics blast South Africa past Australia