Market Structure and Congestion Externalities: Theory and application to the ride-hailing industry