Trends in investments in global energy research, development, and demonstration