How did the great wars contribute to the development of science?