Transmission Network Reduction Method using Nonlinear Optimization