How did the Monroe Doctrine affect James Monroe?