Essays on empirical market microstructure