Phantora: Maximizing Code Reuse in Simulation-based Machine Learning System Performance Estimation