One-dimensional modelling of mixing, dispersion and segregation of multiphase fluids flowing in pipelines