A two-phase GI/PH/1 → ·/PH/1/0 system with losses