How Do Shocks Arise and Spread Across Stock Markets? A Microstructure Perspective