Roles of Formal Institutions and Social Capital in Innovation Activities: A Cross-Country Analysis