Essays in empirical industrial organization and auctions