Modelling the effect of oil on foam with the wave curve method