Essays in empirical market microstructure