Modelling of liquefaction and lateral spreading