On QZ steps with perfect shifts and computing the index of a differential-algebraic equation