How did the Monroe doctrine impact president William McKinley's decision to stay neutral or join the war?