Patents, R&D, and Invention Potential: International Evidence