Rheology of foams and highly concentrated emulsions