Power Transmission System Analysis Against Faults and Attacks