Reducing the index of differential-algebraic equations by exploiting underlying structures