Agent-based modelling and market microstructure