A combined immersed boundary/phase-field method for simulating two-phase pipe flows