Modelling of annular two-phase flow in horizontal and vertical pipes including the transition from the stratified flow regime