The Market Microstructure of Decentralized Exchanges