What governs firm-level R&D: Internal or external factors?