A relation between dynamic foam stability and surface elasticity