Essays in empirical market design