Prediction model for the transition between oil–water two-phase separation and dispersed flows in horizontal and inclined pipes