Artificial intelligence in science: An emerging general method of invention