Investment opportunities and R&D investments in family and nonfamily firms