A new method and apparatus for measuring foam stability