Understanding the Roles of Inflow-Control Devices in Optimizing Horizontal-Well Performance