Three miners who have been trapped in an abandoned gold mine in the South African city of Johannesburg since Wednesday have emerged alive.