was the monroe doctine affective during the mexican american war? was the monroe doctine affective during the mexican american war?