Real-Time Nonlinear Transient Simulation Based on Optimized Transmission Line Modeling