San Luis & Rio Grande Railroad prepares to come out of bankruptcy