was the monroe doctine affective during the mexican american war?