Inertia theory for simultaneously triangulable complex matrices