Numerical modeling of three-phase stratified flow in pipes