R&D, innovation activity, and the use of external numerical flexibility