China markets rout threatens global stocks