To centralize or not to centralize: R&D organization in diversified firms