Text this: Risk of transient stability using rotor trajectory index as severity function