China factory activity shrinks for the first time in 2 years