Accelerating Giant Impact Simulations with Machine Learning