Offshore Riser Slug Flow Avoidance: Mathematical Models for Design and Optimization