A unified approach to substructuring and structural modification problems