Essays in Competition and Externalities