The effect of surfactants on two-phase flows in flowlines and risers