Stability analysis for two-phase pipe flow