China: the anatomy of a slowdown