Modal Analysis of Electromagnetic Transients in ac Networks Having Long Transmission Lines