Chinese firms ramp up R&D spending as they catch up with the West