A Sum Rule Concerning the Inhomogeneous Demagnetizing Field in Nonellipsoidal Samples