The effect of small ellipsoidal material on the resonant frequency of a cavity