Matrix elements of many-particle-many-hole states with an application to isospin mixing in the mass-17 system