Modified orthogonality of ellipsoidal harmonics