Design of Two-Phase Flow Lines for Geothermal Applications: The Slug Flow Regime