Measurement of foam drainage using AC conductivity