Discrete modelling of two-dimensional liquid foams