Investigating Transient Overvoltage Produced by Switching Action on Long Transmission Lines and Its Effect on Substations