A resource-based analysis of the factors determining a firm's R&D activities