China's factory activity swings to surprise growth in May